package com.job.GaoYuXuan.Homework0711;

import java.util.Scanner;

/**
 * @author 盖
 * @version 1.0
 * @since 2022-07-11 21:05:29
 */
public class Demo {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        //创建基本类型的包装类型对象
        Integer i = new Integer(100);
        String s = i.toString();
        System.out.println(s);
        Integer si = new Integer("123456");
        int num = si.intValue();
        System.out.println(num + 100);
        //Java提供自动包装，解包装
        Integer ii = 200;
        int inum = ii;
        //*******
        int anint = Integer.parseInt("5496");
        System.out.println(anint + 1);
        //除了字符串包装类Character没有parserChar
        //基本类型变字符串
        //1：""+""
        double dd = 3.14;
        String jj = dd + "";
        String sdd2 = String.valueOf(dd);
        System.out.println(sdd2);
        String sdd3 = Double.toString(dd);
        System.out.println(sdd3);
    }
}